﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace XB.Core.DAO.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            var sqlClient = new SqlServerClient("Data Source=10.2.3.251;Initial Catalog=TujiaProduct;Persist Security Info=True;User ID=TujiaProduct;Password=123456");
            var unit = sqlClient.GetForModify<Unit>(1);

            unit.Name = unit.Name.Substring(0, unit.Name.Length - 1);
            unit.ResidentialQuarterName = unit.ResidentialQuarterName + "1";
            sqlClient.Update(unit);
        }
    }
}
